package com.jobpass.common.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jobpass.common.insterface.SignMapper;
import com.jobpass.common.model.Sign;
import com.jobpass.common.service.SignService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author JobPass
 * @since 2020-07-17
 */
@Service
public class SignServiceImpl extends ServiceImpl<SignMapper, Sign> implements SignService {

    @Resource
    private SignMapper signMapper;
    @Override
    public List<Sign> FindAllSign() {
        return signMapper.selectList(null);
    }

    @Override
    public Sign FindSignById(Long id) {
        return signMapper.selectById(id);
    }

    @Override
    public int DeleteSignById(Long id) {
        return signMapper.deleteById(id);
    }

    @Override
    public int UpdateSignById(Sign sign) {
        return signMapper.updateById(sign);
    }

    @Override
    public int SavaSign(Sign sign) {
        return signMapper.insert(sign);
    }
}
